<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
       $n=8;

         for($i=1;$i<=$n;$i++)
    {
         for($j=1;$j<=$n-$i;$j++)
         {
        echo "&nbsp";   //输出空格
     }
    for($j=1;$j<=($i-1)*2+1;$j++)
    {

    echo "＊";

    }
      echo "<br/>";
   }


        ?>
    </body>
</html>
